package com.example.controller;

import com.example.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className HelloContoller
 * @Description TODO
 * @Author YUjiangpeng
 * @Date 2020/6/8 23:45
 * @Version 1.0
 **/
@RestController
public class HelloContoller {
    @Autowired
    DemoService demoService;
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public String sayHello(){
       return demoService.sayHello("aaa");
    }
}
